package com.atguigu.d_classloader;

public class Demo {
    public static void main(String[] args) {
        //获取系统类加载器对象
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        System.out.println("systemClassLoader = " + systemClassLoader);

        ClassLoader extraClassLoader = systemClassLoader.getParent();
        System.out.println("extraClassLoader = " + extraClassLoader);//拓展类加载器

        ClassLoader rootClassLoader = extraClassLoader.getParent();
        System.out.println("rootClassLoader = " + rootClassLoader);//null
    }
}
